import { MockMethod } from 'vite-plugin-mock';
import { adapter } from '../_util';

const userInfo = {
  name: 'pinky-pig',
  userid: '00000001',
  email: 'test@gmail.com',
  signature: '海纳百川，有容乃大',
  introduction: '微笑着，努力着，欣赏着',
  country: 'China',
  address: 'Nanjing City',
};

export default [
  {
    url: '/mock/fetchData',
    timeout: 1000,
    method: 'get',
    response: () => {
      return adapter(userInfo)
    },
  },
] as MockMethod[];
